package com.xxgc.ssm.controller;

import com.xxgc.ssm.po.Users;
import com.xxgc.ssm.po.info.Info;
import com.xxgc.ssm.service.IUserLogin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

public class UserRegister {
    //搭建一个通道
    @Autowired
    private IUserLogin uls;

    @RequestMapping("/login")
    @ResponseBody
    public Info userRegister(Users users){

        return uls.insertRegister(users);
    }
}
